<ui:composition template="/templates/layout.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<ui:define name="content">
		<h:form>
			<p:messages id="messages" showDetail="true" autoUpdate="true"
				closable="true" />
			<p:outputLabel value="Nome:" />
			<p:inputText value="#{pessoaMBean.nome}" required="true" />
			<p:outputLabel value="Idade" />
			<p:inputText value="#{pessoaMBean.idade}" />
			<p:commandButton value="Enviar" update="messages"
				action="#{pessoaMBean.acao}" />
		</h:form>
		<hr />
		<p:outputLabel value="#{pessoaMBean.pessoaRetornoDto.nomeIdade}"
			rendered="#{pessoaMBean.pessoaRetornoDto != null}" />
	</ui:define>
</ui:composition>